package mybatis.test;

import mybatis.MyBatisUtils;
import mybatis.mapper.PersonMapper;
import mybatis.pojo.Person;
import org.apache.ibatis.session.SqlSession;
public class Part18 {
    public static void main(String[] args) {
    SqlSession sqlSession = MyBatisUtils.getSession();
    PersonMapper personMapper =  sqlSession.getMapper(PersonMapper.class);
    Person person = personMapper.findPersonById3(1);
    System.out.println(person);
}
}